package com.jj;

import com.jj.config.AppConfig;
import com.jj.service.OrderService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Hello world!
 */
public class App {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);

        OrderService orderService = context.getBean(OrderService.class);

        orderService.syncOrder();

        context.close();

    }
}
